<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


Route::group(["middleware"=>["glang"]], function () {
    Route::get('/',  'IndexController@index');
    Route::post('/',  'IndexController@index');
    Route::get('/asp-warranty',  'IndexController@asp');
    Route::post('/asp-warranty',  'IndexController@asp');
    Route::post('/getPhone', 'IndexController@getPhone');
    Route::any('ajax',  'AjaxController@index');
    Route::any('ajax/warranty',  'AjaxController@warranty');
    Route::any('/store', 'StoreController@index');
    Route::any('store/about', 'StoreController@about');
    Route::any('api/store/detail/{id}', 'StoreController@detail');
    Route::any('api/store/nearBy', 'StoreController@getNearBy');
    Route::any('api/store/images', 'StoreController@storeImages');
});

Route::get('api/store', 'ApiController@index');
Route::get('api/store/detail', 'ApiController@detail');
Route::get('api/store/getDetail', 'ApiController@getDetail');
Route::get('api/store/getAll', 'ApiController@getAll');
Route::get('api/store/getList', 'ApiController@getStoreList');
Route::get('api/area', 'ApiController@area');
Route::get('api/add_warranty', 'ApiController@addWarranty');
Route::get('batch_process', 'MigrateController@batchProcessRollNumber');
Route::get('init@202009',  'InitController@init');
Route::get('admin/upload', 'MigrateController@showUpload');
Route::post('migrate/import', 'MigrateController@insertB');
Route::get('wxLogin', 'WxController@login');
Route::get('wx', 'WxController@index');
Route::get('wxAuth', 'WxController@auth');
Route::get('wx/sendCode', 'WxController@sendCode');
Route::get('wx/bindPhone', 'WxController@bindPhone');
Route::get('api/user-send-code', 'StoreController@sendCode');
Route::get('api/user-login', 'StoreController@login');
Route::get('api/warranty-car-brand', 'WarrantyController@carBrand');
Route::get('api/warranty-car-model', 'WarrantyController@carModel');
Route::get('api/warranty-part', 'WarrantyController@partMasters');
Route::post('api/warranty-upload', 'WarrantyController@uploadFile');
Route::get('api/warranty-list', 'WarrantyController@warrantyList');
Route::get('api/construction-type', 'WarrantyController@constructionType');
Route::get('api/warranty-detail', 'WarrantyController@getWarranty');
Route::get('api/warranty-roll', 'WarrantyController@price');
Route::post('api/warranty-save', 'WarrantyController@save');

Route::get('admin/login', 'Admin\LoginController@login');
Route::post('admin/login', 'Admin\LoginController@doLogin');
Route::any('admin/loginout', 'Admin\LoginController@loginout');
Route::any('admin/logout', 'Admin\LoginController@loginout');


Route::group(["prefix"=> "admin", "middleware"=>["admin"]], function () {
    Route::get('', 'Admin\IndexController@index');
    Route::get('index', 'Admin\IndexController@index');


    Route::get('userinfo', 'Admin\AdminController@userinfo');
    Route::get('userinfo/edit', 'Admin\AdminController@userinfo_edit');
    Route::put('userinfo', 'Admin\AdminController@userinfo_update');
    Route::post('userinfo/change_pwd', 'Admin\AdminController@userinfo_change_pwd');

    /*
     * 经销商同步*/
    Route::get('user_sync', 'Admin\AdminController@user_sync');
    Route::get('user_sync/{id}', 'Admin\AdminController@user_sync_show')->where(['id'=>'[1-9][0-9]*',]);
    Route::put('user_sync/{id}', 'Admin\AdminController@user_sync_update')->where(['id'=>'[1-9][0-9]*',]);

    // 管理员省代管理
    Route::get('distributor', 'Admin\AdminController@distributor_index');
    Route::get('distributor/{id}', 'Admin\AdminController@distributor_show')->where(['id'=>'[1-9][0-9]*',]);
    Route::get('distributor/create', 'Admin\AdminController@distributor_create');
    Route::post('distributor', 'Admin\AdminController@distributor_store');
    Route::get('distributor/{id}/edit', 'Admin\AdminController@distributor_edit')->where(['id'=>'[1-9][0-9]*',]);
    Route::put('distributor/{id}', 'Admin\AdminController@distributor_update')->where(['id'=>'[1-9][0-9]*',]);
    Route::post('distributor/{id}/reset_pwd', 'Admin\AdminController@distributor_reset_pwd')->where(['id'=>'[1-9][0-9]*',]);
    // Route::delete('distributor/{id}', 'Admin\AdminController@distributor_delete')->where(['id'=>'[1-9][0-9]*',]);
    Route::put('distributor/edit_status', 'Admin\AdminController@edit_status');
    Route::get('distributor/{id}/dealer', 'Admin\AdminController@distributor_dealer')->where(['id'=>'[1-9][0-9]*',]);
    Route::get('distributor/{id}/performance', 'Admin\AdminController@distributor_performance')->where(['id'=>'[1-9][0-9]*',]);
    // Route::get('distributor/{id}/dealer/{dealer}/performance', 'Admin\AdminController@distributor_dealer_performance')->where(['id'=>'[1-9][0-9]*',]);
    // Route::delete('distributor/deletes', 'Admin\AdminController@distributor_deletes');
    Route::get('distributor/{id}/performance/charts', 'Admin\AdminController@distributor_performance_charts')->where(['id'=>'[1-9][0-9]*',]);

    Route::get('distributor/import', 'Admin\AdminController@distributor_import');
    Route::post('distributor/import', 'Admin\AdminController@distributor_handle_import');

    Route::get('distributor-o', 'Admin\AdminController@distributor_index_o');
    Route::get('dealer-o', 'Admin\AdminController@dealer_index_o');
    Route::get('sync-o', 'Admin\AdminController@sync_index_o');
    Route::get('sync/update_status', 'Admin\AdminController@sync_update_status');


    # 经销商
    Route::get('dealer/create', 'Admin\DealerController@create');
    Route::post('dealer', 'Admin\DealerController@store');
    Route::post('dealer/save', 'Admin\DealerController@store');
    Route::get('dealer/{id}/edit', 'Admin\DealerController@edit')->where(['id'=>'[1-9][0-9]*',]);
    Route::put('dealer/{id}', 'Admin\DealerController@update')->where(['id'=>'[1-9][0-9]*',]);
    Route::get('dealer/export', 'Admin\DealerController@export');

    Route::get('dealer', 'Admin\AdminController@dealer_index');
    Route::get('dealer/{id}', 'Admin\AdminController@dealer_show')->where(['id'=>'[1-9][0-9]*',]);
    // Route::get('dealer/create', 'Admin\AdminController@dealer_create');
    // Route::post('dealer', 'Admin\AdminController@dealer_store');
    // Route::get('dealer/{id}/edit', 'Admin\AdminController@dealer_edit')->where(['id'=>'[1-9][0-9]*',]);
    // Route::put('dealer/{id}', 'Admin\AdminController@dealer_update')->where(['id'=>'[1-9][0-9]*',]);
    // Route::delete('dealer/{id}', 'Admin\AdminController@dealer_delete')->where(['id'=>'[1-9][0-9]*',]);
    Route::put('dealer/edit_status', 'Admin\AdminController@dealer_edit_status');
    Route::get('dealer/{id}/performance', 'Admin\AdminController@dealer_performance')->where(['id'=>'[1-9][0-9]*',]);
    // Route::delete('dealer/deletes', 'Admin\AdminController@dealer_deletes');
    Route::get('dealer/import', 'Admin\AdminController@dealer_import');
    Route::post('dealer/import', 'Admin\AdminController@dealer_handle_import');
    Route::get('dealer/store_code', 'Admin\DealerController@storeCode');

    # 车主管理
    Route::get('customer', 'Admin\AdminController@customer_index');
    Route::get('customer/{id}', 'Admin\AdminController@customer_show')->where(['id'=>'[1-9][0-9]*',]);
    # 膜卷管理
    Route::get('rolls', 'Admin\RollsController@index');
    Route::get('rolls/{id}', 'Admin\RollsController@show')->where(['id'=>'[1-9][0-9]*',]);
    Route::get('rolls/create', 'Admin\RollsController@create');
    Route::post('rolls', 'Admin\RollsController@store');
    Route::get('rolls/{id}/edit', 'Admin\RollsController@edit')->where(['id'=>'[1-9][0-9]*',]);
    Route::put('rolls/{id}', 'Admin\RollsController@update')->where(['id'=>'[1-9][0-9]*',]);
    Route::delete('rolls/{id}', 'Admin\RollsController@destory')->where(['id'=>'[1-9][0-9]*',]);
    Route::delete('rolls/deletes', 'Admin\RollsController@deletes'); # 根据id多删除
    Route::post('rolls/assign', 'Admin\RollsController@assign');
    Route::get('rolls/import', 'Admin\RollsController@import');
    Route::post('rolls/import', 'Admin\RollsController@handle_import');
    Route::get('rolls/import-result', 'Admin\RollsController@import_result');
    Route::get('rolls/importDistribution', 'Admin\RollsController@importDistribution');
    Route::post('rolls/importDistribution', 'Admin\RollsController@handleImportDistribution');
    Route::get('rolls/getRollsType', 'Admin\RollsController@getRollsType');

    # 调货
    Route::get('rolls-transfer', 'Admin\RollsTransferController@index');
    Route::get('rolls-transfer/create', 'Admin\RollsTransferController@create');
    Route::post('rolls-transfer', 'Admin\RollsTransferController@store');

    Route::get('verify/transfer', 'Admin\AdminController@verify_transfer_index');
    Route::post('verify/transfer', 'Admin\AdminController@verify_transfer_index');
    Route::get('verify/transfer/{id}', 'Admin\AdminController@verify_transfer_show')->where(['id'=>'[1-9][0-9]*',]);
    Route::get('verify/transfer/{id}/records', 'Admin\AdminController@verify_transfer_records')->where(['id'=>'[1-9][0-9]*',]);
    Route::post('verify/transfer/{id}/verify', 'Admin\AdminController@verify_transfer_verify')->where(['id'=>'[1-9][0-9]*',]);

    /*
     * 下载管理*/
    Route::get('download', 'Admin\AdminController@download');
    /*Route::get('warranty/create', function () {
        return [];
    });*/
    Route::get('warranty/create', 'Admin\WarrantyController@create');
    Route::post('warranty', 'Admin\WarrantyController@store');
    Route::get('warranty/{id}/edit', 'Admin\WarrantyController@edit')->where(['id'=>'[1-9][0-9]*',]);
    Route::put('warranty/{id}', 'Admin\WarrantyController@update')->where(['id'=>'[1-9][0-9]*',]);
    Route::post('warranty/bulk_import', 'Admin\WarrantyController@handle_import');
    Route::get('warranty/install', 'Admin\WarrantyController@install');
    Route::post('warranty/install', 'Admin\WarrantyController@handle_install');
    Route::get('warranty/bulk_import', 'Admin\WarrantyController@import');
    Route::get('warranty/asp_import', 'Admin\WarrantyController@aspImport');
    Route::post('warranty/asp_import', 'Admin\WarrantyController@handleAspImport');

    Route::get('warranty', 'Admin\WarrantyController@index');
    Route::get('warranty/{id}', 'Admin\WarrantyController@show')->where(['id'=>'[1-9][0-9]*',]);
    Route::get('warranty/export', 'Admin\WarrantyController@export');


    Route::delete('warranty/{id}', 'Admin\AdminController@warranty_delete')->where(['id'=>'[1-9][0-9]*',]);
    Route::get('warranty/download_template', 'Admin\AdminController@warranty_download_template');
    Route::delete('warranty/deletes', 'Admin\AdminController@warranty_deletes');

    /*
    Route::get('verify/warranty', 'Admin\AdminController@verify_warranty_index');
    Route::get('verify/warranty/{id}', 'Admin\AdminController@verify_warranty_show')->where(['id'=>'[1-9][0-9]*',]);
    Route::get('verify/warranty/{id}/records', 'Admin\AdminController@verify_warranty_records')->where(['id'=>'[1-9][0-9]*',]);
    Route::post('verify/warranty/{id}/verify', 'Admin\AdminController@verify_warranty_verify')->where(['id'=>'[1-9][0-9]*',]);
    */

    Route::get('logs', 'Admin\AdminController@logs_index');
    Route::get('dblogs', 'Admin\AdminController@dblogs_index');
    Route::get('charts', 'Admin\AdminController@charts_index');


    /*套餐*/
    Route::get('precut', 'Admin\AdminController@precut_index');
    Route::get('precut/{id}', 'Admin\AdminController@precut_show')->where(['id'=>'[1-9][0-9]*',]);
    Route::get('precut/create', 'Admin\AdminController@precut_create');
    Route::post('precut', 'Admin\AdminController@precut_store');
    Route::get('precut/{id}/edit', 'Admin\AdminController@precut_edit')->where(['id'=>'[1-9][0-9]*',]);
    Route::put('precut/{id}', 'Admin\AdminController@precut_update')->where(['id'=>'[1-9][0-9]*',]);
    Route::delete('precut/{id}', 'Admin\AdminController@precut_delete')->where(['id'=>'[1-9][0-9]*',]);
    Route::delete('precut/deletes', 'Admin\AdminController@precut_deletes');
    Route::post('precut/assign', 'Admin\AdminController@precut_assign');
    Route::post('precut/return', 'Admin\AdminController@precut_return');

    Route::get('precut_deal', 'Admin\AdminController@precut_deal_index');
    // Route::get('precut_deal/{id}', 'Admin\AdminController@precut_show')->where(['id'=>'[1-9][0-9]*',]);
    Route::get('precut_deal/{id}/install', 'Admin\AdminController@precut_deal_install')->where(['id'=>'[1-9][0-9]*',]);
    Route::put('precut_deal/{id}', 'Admin\AdminController@precut_deal_installp')->where(['id'=>'[1-9][0-9]*',]);


    /*
     * 退货*/
    Route::get('rolls-return/create', 'Admin\AdminController@rolls_return_create')->where(['id'=>'[1-9][0-9]*',]);
    // Route::post('rolls-return', 'Admin\AdminController@rolls_return_store');
    Route::post('rolls-return', 'Admin\RollsReturnController@store');
    Route::get('verify/rolls_return', 'Admin\AdminController@verify_rolls_return');
    Route::get('verify/rolls_return/{id}', 'Admin\AdminController@verify_rolls_return_show')->where(['id'=>'[1-9][0-9]*',]);
    Route::post('verify/rolls_return/{id}/verify', 'Admin\AdminController@verify_rolls_return_verify')->where(['id'=>'[1-9][0-9]*',]);
    // Route::get('verify/precut_return', 'Admin\AdminController@verify_precut_return');
    // Route::get('verify/precut_return/{id}', 'Admin\AdminController@verify_precut_return_show')->where(['id'=>'[1-9][0-9]*',]);
    Route::get('rolls-return', 'Admin\AdminController@rolls_return_index'); // 省代退货管理
    // Route::get('rolls-transfer', 'Admin\AdminController@rolls_return_index'); // 省代调货管理

    Route::get('distributor/{distributor}/dealers', 'Admin\DistributorController@dealers');

    /*车型同步*/
    Route::get('setting/model/import', 'Admin\SettingModelController@import');
    Route::post('setting/model/import', 'Admin\SettingModelController@handle_import');
    Route::resources([
        'setting/model' => 'Admin\SettingModelController',
        'setting/make' => 'Admin\SettingMakeController',
        'setting/filmtype' => 'Admin\SettingFilmtypeController',
        'setting/macro_management' => 'Admin\SettingMacroController',
        'setting/part' => 'Admin\SettingPartController',
        'warrantys' => 'Admin\WarrantyController',
        'setting/new-part' => 'Admin\NewPrecutPartController',
        'setting/part-meal' => 'Admin\PrecutMealPartController',
    ]);
// TJPART

    Route::get('roles', 'Admin\RolesController@index');
    Route::get('roles/{id}', 'Admin\RolesController@show')->where(['id'=>'[1-9][0-9]*',]);
    Route::get('roles/create', 'Admin\RolesController@create');
    Route::post('roles', 'Admin\RolesController@store');
    Route::get('roles/{id}/edit', 'Admin\RolesController@edit')->where(['id'=>'[1-9][0-9]*',]);
    Route::put('roles/{id}', 'Admin\RolesController@update')->where(['id'=>'[1-9][0-9]*',]);

    Route::get('tables','Admin\TablesController@index');


    Route::get('old-warranty/import', 'Admin\OldWarrantyController@import');
    Route::post('old-warranty/import', 'Admin\OldWarrantyController@handle_import');
    Route::get('old-warranty/import-result', 'Admin\OldWarrantyController@import_result');

    Route::get('new-precut/export', 'Admin\NewPrecutController@export');
    Route::get('precut-meal/export', 'Admin\NewPrecutController@export');

    /*
     * 专车专用套件*/
    Route::resources([
        'new-precut' => 'Admin\NewPrecutController',
        'precut-meal' => 'Admin\PrecutMealController',
    ]);
    Route::delete('new-precut/deletes', 'Admin\NewPrecutController@deletes');
    Route::delete('precut-meal/deletes', 'Admin\PrecutMealController@deletes');

    Route::get('warranty/import2', 'Admin\WarrantyController@import2');
    Route::post('warranty/import2', 'Admin\WarrantyController@handle_import2');


    // Route::any('ajax/rolls', 'Admin\Ajax\RollsController@index');
    Route::any('ajax/{action}', 'Admin\AjaxController@index');
    Route::any('ajax/v3/{action}', 'Admin\Ajax\V3Controller@index');

    Route::get('newRoles', 'Admin\NewRolesController@index');
    Route::post('newRoles/add', 'Admin\NewRolesController@create');
    Route::any('newRoles/edit_status', 'Admin\NewRolesController@editStatus');

    Route::get('module/getModulesByRoleId', 'Admin\ModuleController@getModulesByRoleId');
    Route::post('module/add', 'Admin\ModuleController@add');

    Route::get('user', 'Admin\UserController@index');
    Route::get('user/create', 'Admin\UserController@create');
    Route::post('user', 'Admin\UserController@add');
    Route::any('user/edit_status', 'Admin\UserController@editStatus');
    Route::get('user/edit', 'Admin\UserController@edit');
    Route::any('user/save', 'Admin\UserController@editUser');

    Route::get('distributor/{id}/stock', 'Admin\StockController@dealer_stock');
    Route::get('dealer/{id}/stock', 'Admin\StockController@dealer_stock');
    Route::get('stock', 'Admin\StockController@index');

    Route::get('setting/sms', 'Admin\SettingSmsController@index');
    Route::get('setting/sms/add', 'Admin\SettingSmsController@add');
    Route::post('setting/sms', 'Admin\SettingSmsController@save');
    Route::get('setting/sms/{id}/edit', 'Admin\SettingSmsController@edit')->where(['id'=>'[1-9][0-9]*',]);
    Route::put('setting/sms/{id}', 'Admin\SettingSmsController@save')->where(['id'=>'[1-9][0-9]*',]);
    Route::delete('setting/sms/{id}', 'Admin\SettingSmsController@delete')->where(['id'=>'[1-9][0-9]*',]);

    Route::get('new-precut-transfer/create', 'Admin\NewPrecutTransferController@create');
    Route::post('new-precut-transfer/save', 'Admin\NewPrecutTransferController@save');
    Route::get('new-precut-transfer', 'Admin\NewPrecutTransferController@index');
    Route::get('new-precut-transfer/check', 'Admin\NewPrecutTransferController@check');
    Route::get('new-precut-transfer/getPrecut', 'Admin\NewPrecutTransferController@getPrecut');
    Route::get('new-precut-transfer/getPrecutDetail', 'Admin\NewPrecutTransferController@getPrecutDetail');
    Route::get('new-precut-transfer/check/{id}', 'Admin\NewPrecutTransferController@look')->where(['id'=>'[1-9][0-9]*',]);
    Route::get('new-precut-transfer/check/{id}/record', 'Admin\NewPrecutTransferController@record')->where(['id'=>'[1-9][0-9]*',]);
    Route::post('new-precut-transfer/check/{id}/verify', 'Admin\NewPrecutTransferController@verify')->where(['id'=>'[1-9][0-9]*',]);

    Route::get('dealer/update_status/{id}', 'Admin\DealerController@updateStatus');
    Route::get('setting-model/getModels', 'Admin\SettingModelController@getModels');

    Route::get('warranty_delete/add', 'Admin\WarrantyDeleteController@add');
    Route::post('warranty_delete', 'Admin\WarrantyDeleteController@store');
    Route::get('warranty_delete', 'Admin\WarrantyDeleteController@index');
    Route::delete('warranty_delete/{id}', 'Admin\WarrantyDeleteController@delete');

    Route::get('stat/brand', 'Admin\StatController@brandStat');
    Route::get('stat/brand_rank', 'Admin\StatController@brandRank');
    Route::get('stat/brand_model', 'Admin\StatController@modelStat');
    Route::get('stat/roll', 'Admin\StatController@rollStat');
    Route::get('stat/roll_sale', 'Admin\StatController@rollSaleStat');
    Route::get('stat/roll_qm', 'Admin\StatController@rollQm');
    Route::get('stat/roll_window', 'Admin\StatController@rollWindow');
    Route::get('stat/roll_car_owner', 'Admin\StatController@rollCarOwner');
    Route::get('stat/roll_single', 'Admin\StatController@singleRoll');
    Route::get('stat/roll_single_detail', 'Admin\StatController@singleRollDetail');

    Route::get('stat/store', 'Admin\StatController@storeStat');
    Route::get('stat/store_all_sales', 'Admin\StatController@allSales');
    Route::get('stat/store_dealer_sales', 'Admin\StatController@dealerRank');
    Route::get('stat/store_distribution_sales', 'Admin\StatController@distributionsRank');
    Route::get('stat/store_type_stat', 'Admin\StatController@storeTypeStat');
    Route::get('stat/store_price', 'Admin\StatController@storePrice');
    Route::get('stat/showWarrantyRolls', 'Admin\StatController@showWarrantyRolls');
    Route::get('stat/storeAll', 'Admin\StatController@storeAll');
    Route::get('stat/storeDealerAll', 'Admin\StatController@storeDealerAll');
    Route::get('stat/storeDistAll', 'Admin\StatController@storeDistAll');
    Route::get('stat/storeStoreAll', 'Admin\StatController@storeStoreAll');
    Route::get('stat/price', 'Admin\StatController@price');
    Route::get('stat/rollAll', 'Admin\StatController@rollAll');
    Route::get('stat/rollStockAll', 'Admin\StatController@rollStockAll');
    Route::get('stat/rollTransferAll', 'Admin\StatController@rollTransferAll');
    Route::get('stat/rollBackAll', 'Admin\StatController@rollBackAll');
    Route::get('stat/storeSales', 'Admin\StatController@storeSales');
    Route::get('stat/storeScores', 'Admin\StatController@storeScores');
    Route::get('stat/rollSale', 'Admin\StatController@rollSale');
    Route::get('stat/rollTransfer', 'Admin\StatController@rollTransfer');
    Route::get('stat/rollReturn', 'Admin\StatController@rollReturn');
    Route::get('stat/dealerPrice', 'Admin\StatController@dealerPrice');

    Route::get('stat/warranty', 'Admin\StatController@warrantyStat');
    Route::get('stat/warranty_roll_type', 'Admin\StatController@warrantyRollTypeStat');
    Route::get('stat/warranty_part', 'Admin\StatController@warrantyPartStat');
    Route::get('stat/warranty_order', 'Admin\StatController@warrantyOrderStat');

    Route::get('stat_compare/compare_all_rolls', 'Admin\StatCompareController@compareAllRolls');
    Route::get('stat_compare/compare_qm_rolls', 'Admin\StatCompareController@compareQmRolls');
    Route::get('stat_compare/compare_win_rolls', 'Admin\StatCompareController@compareWinRolls');
    Route::get('stat_compare/compare_win_rolls', 'Admin\StatCompareController@compareWinRolls');
    Route::get('stat_compare/compare_warranty_total', 'Admin\StatCompareController@compareWarrantyTotal');
    Route::get('stat_compare/compare_warranty_part', 'Admin\StatCompareController@compareWarrantyPart');
    Route::get('stat_compare/compare_warranty_order', 'Admin\StatCompareController@compareWarrantyOrder');
    Route::get('stat_compare/compare_brand', 'Admin\StatCompareController@compareBrand');
    Route::get('stat_compare/total_sale_roll', 'Admin\StatCompareController@totalSaleRoll');
    Route::get('stat_compare/total_dealer_roll', 'Admin\StatCompareController@totalSaleDealerRoll');
    Route::get('stat_compare/total_dist_roll', 'Admin\StatCompareController@totalSaleDistRoll');
    Route::get('stat_compare/all_sales', 'Admin\StatCompareController@allSales');
    Route::get('stat_compare/all_scores', 'Admin\StatCompareController@allScores');
    Route::get('stat_compare/dist_sales', 'Admin\StatCompareController@distSales');
    Route::get('stat_compare/dist_scores', 'Admin\StatCompareController@distScores');
    Route::get('stat_compare/dealer_scores', 'Admin\StatCompareController@dealerScores');
    Route::get('stat_compare/dealer_sales', 'Admin\StatCompareController@dealerSales');
    Route::get('stat_compare/brand_total', 'Admin\StatCompareController@brandTotal');
    Route::get('stat_compare/most_brand', 'Admin\StatCompareController@mostBrand');
    Route::get('stat_compare/most_model', 'Admin\StatCompareController@mostModel');
    Route::get('stat_compare/warranty_total', 'Admin\StatCompareController@warrantyTotal');
    Route::get('stat_compare/warranty_num', 'Admin\StatCompareController@warrantyNum');
    Route::get('stat_compare/warranty_roll', 'Admin\StatCompareController@warrantyRoll');
    Route::get('stat_compare/sales', 'Admin\StatCompareController@sales');
    Route::get('stat_compare/return', 'Admin\StatCompareController@return');
    Route::get('stat_compare/transfer', 'Admin\StatCompareController@transfer');
    Route::get('stat_compare/compareRoll', 'Admin\StatCompareController@compareRoll');
    Route::get('stat_compare/compareAbbrRoll', 'Admin\StatCompareController@compareAbbrRoll');
    Route::get('stat_compare/compareWarrantyDetail', 'Admin\StatCompareController@compareWarrantyDetail');
    Route::get('stat_compare/comparePrice', 'Admin\StatCompareController@comparePrice');
    Route::get('stat_compare/export', 'Admin\StatCompareController@export');

    Route::get('stat/showRollSales', 'Admin\StatController@showRollSales');
    Route::get('stat/storeProvince', 'Admin\StatController@storeProvince');
    Route::get('stat/showDistRolls', 'Admin\StatController@showDistRolls');
    Route::get('stat/showDealerRolls', 'Admin\StatController@showDealerRolls');
    Route::get('stat/countryTask', 'Admin\StatController@countryTask');
    Route::get('stat/showCountryTaskDetail', 'Admin\StatController@showCountryTaskDetail');
    Route::get('statExport/index', 'Admin\StatExportController@exportData');

    Route::get('stat/detail', 'Admin\StatController@detailStat');
    Route::get('stat/detail_dist_stat', 'Admin\StatController@detailDistStat');
    Route::get('stat/detail_dealer_stat', 'Admin\StatController@detailDealerStat');
    Route::get('stat/showDistWarrantyDetail', 'Admin\StatController@showDistWarrantyDetail');
    Route::get('stat/showDealerWarrantyDetail', 'Admin\StatController@showDealerWarrantyDetail');
    Route::get('stat/detailDealerScoreStat', 'Admin\StatController@detailDealerScoreStat');
    Route::get('stat/showDetailDealerScoreStat', 'Admin\StatController@showDetailDealerScoreStat');
    Route::post('stat/getCities', 'Admin\StatController@getCities');

    Route::get('store', 'Admin\StoreController@index');
    Route::get('store', 'Admin\StoreController@index');
    Route::get('store/create', 'Admin\StoreController@create');
    Route::post('store/uploadImage', 'Admin\StoreController@uploadImage');
    Route::post('store/uploadVideo', 'Admin\StoreController@uploadVideo');
    Route::post('store/save', 'Admin\StoreController@save');
    Route::get('store/edit/{id}', 'Admin\StoreController@edit');
    Route::delete('store/{id}', 'Admin\StoreController@delete')->where(['id'=>'[1-9][0-9]*',]);
    Route::delete('store/deletes', 'Admin\StoreController@deletes');
    Route::post('store/update', 'Admin\StoreController@update');
});
